package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.InitialInventory;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【initial_inventory(初期库存)】的数据库操作Service
 * @createDate 2024-11-25 09:23:38
 */
public interface InitialInventoryService extends IService<InitialInventory> {

    /*
     * 插入初期库存
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertInventory(List<InitialInventory> inventory);

    /*
     * 更新初期库存
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdateInventory(List<InitialInventory> inventory);

    /*
     * 删除初期库存
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean DeleteInventory(List<String> id);

    /*
     * 查询初期库存
     */
    List<InitialInventory> SelectInventory(String code);
}
